<template>
  <div>
    <el-pagination
      :page-size="size"
      layout="total, prev, pager, next, jumper"
      :total="total"
      :current-page="current"
      @current-change="handlePage"
    />
  </div>
</template>

<script>
export default {
  name: 'Page',
  props: {
    current: {
      type: Number,
      required: true
    },
    size: {
      type: Number,
      required: true
    },
    total: {
      type: Number,
      required: true
    }
  },
  methods: {
    handlePage(current) {
      this.$emit('update:current', current)
    }
  }
}
</script>

<style scoped>

</style>
